set

abstract fun <C : P?> set(callbackClass: Class<C>, callback: C): C

Sets a particular service callback.

Replaces the existing callback associated with the callbackClass, if any.

Return

the previously configured callback

Parameters

callbackClass

the callback class

callback

the callback object

<C>

the callback type